import request from '@/utils/request'

// 查询关于我们列表
export function listMallService(query) {
  return request({
    url: '/mall/mallService/list',
    method: 'get',
    params: query
  })
}

// 查询关于我们详细
export function getMallService(id) {
  return request({
    url: '/mall/mallService/' + id,
    method: 'get'
  })
}

// 新增关于我们
export function addMallService(data) {
  return request({
    url: '/mall/mallService',
    method: 'post',
    data: data
  })
}

// 修改关于我们
export function updateMallService(data) {
  return request({
    url: '/mall/mallService',
    method: 'put',
    data: data
  })
}

// 删除关于我们
export function delMallService(id) {
  return request({
    url: '/mall/mallService/' + id,
    method: 'delete'
  })
}

// 导出关于我们
export function exportMallService(query) {
  return request({
    url: '/mall/mallService/export',
    method: 'get',
    params: query
  })
}